<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');

//Route::domain('admin.ecoci.cn','admin');
//Route::domain('api.ecoci.cn','api');


//版本控制
//$v = request()->header('version');
//if($v && $_SERVER['HTTP_HOST'] == 'api.ecoci.cn'){
//    Route::rule(':c/:a', $v.'.:c/:a');
//    Route::rule('', $v.'.index/index');
//}
//Route::rule('api/:version/:name/:method', 'api/:version.:name/:method');


return [

];
